package com.yinuo.entity;

import com.alibaba.fastjson.annotation.JSONType;

import javax.persistence.*;

/**
 * Created by Administrator on 2018/8/3.
 */
@JSONType(orders={"key","cmd","cmdDesc","example","exampleDesc"})
@Table(name="LINUX_SHELL_CMD")
@Entity
public class LinuxShellCmd {

    @Id
    private String key;
    private String cmd;
    @Column(name="cmd_desc")
    private String cmdDesc;
    private String example;
    @Column(name="example_desc")
    private String exampleDesc;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public String getCmdDesc() {
        return cmdDesc;
    }

    public void setCmdDesc(String cmdDesc) {
        this.cmdDesc = cmdDesc;
    }

    public String getExample() {
        return example;
    }

    public void setExample(String example) {
        this.example = example;
    }

    public String getExampleDesc() {
        return exampleDesc;
    }

    public void setExampleDesc(String exampleDesc) {
        this.exampleDesc = exampleDesc;
    }

    @Override
    public String toString() {
        return "LinuxShellCmd{" +
                "key='" + key + '\'' +
                ", cmd='" + cmd + '\'' +
                ", cmdDesc='" + cmdDesc + '\'' +
                ", example='" + example + '\'' +
                ", exampleDesc='" + exampleDesc + '\'' +
                '}';
    }
}
